package com.michael.demo.springcloud.alibaba.seata.order.feign.failback;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * 类功能描述:
 * <pre>
 *   降级处理工厂类
 * </pre>
 *
 * @author Michael
 * @version 1.0
 * @date 2021/03/31 14:35
 */
@Component
public class UserAccountServiceFallbackFactory implements FallbackFactory<UserAccountServiceFallback> {

    @Override
    public UserAccountServiceFallback create(Throwable throwable) {
        return new UserAccountServiceFallback(throwable);
    }
}
